/**
 * 描述：...
 * 作者：彭涛涛
 * 日期：2019/8/2
 * 版本：0.0.1
 **/
(function(E, KIT, RES) {
  var _buildTitle = function(title) {
    return E.view({cssClass: "r-p-l r-p-tb-sm r-bold r-bg-0-2 " + KIT.BD_COLOR}, title);
  };

  rapid.Page.create("MyManage", {
    render: {
      titleBar: "个人待办管理",
      main:
        E.flexv({cssClass: "r-full-h r-border-box r-p"},
          E.flexitem({cssClass: "r-overflow-hide r-m-b-sm"},
            E.iview({cssStyle: "width:49.5%;margin-right:0.5%", cssClass: "r-full-h"},
              E.flexv({cssClass: "r-full-h"},
                _buildTitle("个人待办").addClass("r-bd-trl"),
                E.flexitem({cssClass: "r-overflow-hide"},
                  E.grid("grdMyForm")
                )
              )
            ),
             E.iview({cssStyle: "width:49.5%;margin-left:0.5%", cssClass: "r-full-h"},
               E.flexv({cssClass: "r-full-h"},
                 _buildTitle("生命周期实例待办").addClass("r-bd-trl"),
                 E.flexitem({cssClass: "r-overflow-hide"},
                   E.grid("grdMyExample")
                 )
               )
             )
          ),
          E.flexitem({cssClass: "r-overflow-hide"},
            // E.iview({cssStyle: "width:49.5%;margin-right:0.5%", cssClass: "r-full-h"},
            //   E.flexv({cssClass: "r-full-h"},
            //     _buildTitle("开放工作流代办").addClass("r-bd-trl"),
            //     E.flexitem(
            //       E.grid("grdMyTask")
            //     )
            //   )
            // ),
            E.iview({cssStyle: "width:99%;margin-left:0.5%", cssClass: "r-full-h"},
              E.flexv({cssClass: "r-full-h"},
                _buildTitle("系统通知").addClass("r-bd-trl"),
                E.div({cssClass: "r-bd-trl r-p-sm " + KIT.BD_COLOR},
                  E.input("picker", {
                    id: "txtState", "data-r-opts": {
                      width: "30%",
                      dataSource: [{text: "未阅", value: "0"}, {text: "已阅", value: "1"}, {text: "全部", value: "3"}]
                    },
                    tip: "阅读状态", cssClass: "r-ui"
                  })
                ),
                E.flexitem({cssClass: "r-overflow-hide"},
                  E.grid("grdSystemMessage")
                )
              )
            )
          )
        )
    }
  });

})(rapid.html.Element, rapid.kit, rapid.res);